<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        span {
            display: inline-block;
            width: 13px;
            height: 13px;
            border: 1px solid #eee;
            border-radius: 50%;
        }
        .active  {
            border: 1px solid orange;
            background: orange;
            position: relative;
        }
        .active::after {
            content: "✔";
            color: #fff;
            position: absolute;
            bottom: -2px;
            left: 2px;
            font-size: 12px;
        }
    </style>
</head>

<body>
    <div>
        <span class="active"></span>
        <label for="">院长</label>
        <span></span>
        <label for="">校长</label>
        <span></span>
        <label for="">其他</label>
    </div>

    <script>
        var spans = document.getElementsByTagName("span");
        var label = document.getElementsByTagName("label")
        function switchs(i) {
            for (var j = 0; j < spans.length; j++) {
                    spans[j].className = ""
                }
                spans[i].className = "active"
        }
        for (let i = 0; i < spans.length; i++) {
            spans[i].onclick = function () {
                switchs(i)
            }
            label[i].onclick = function () {
                switchs(i)
            }
        }

        
    </script>
</body>

</html>